
namespace core_CallAndMessage {
    //C
    void test() {
        void (*foo)(void);
        foo = 0;
        foo(); // warn: function pointer is null
    }

    // C++
    class C {
    public:
        void f() {};
    };

    void test1() {
        C* pc;
        pc->f(); // warn: object pointer is uninitialized
    }

    // C++
    class C {
    public:
        void f() {};
    };

    void test2() {
        C* pc = 0;
        pc->f(); // warn: object pointer is null
    }
}
